#include <iostream>
#include <nlohmann/json.hpp>
#include <fstream>
using Json = nlohmann::json;
using namespace std;
int main(){
  Json root;
  ifstream config_doc("coremark_log.json");
  config_doc >> root;
  cout << "jsonsize: " << root.size() << endl;
  int a = root.at(0).at("s0_final_vaddr").at(0);
  cout << a <<endl;
  return 0; 
}